.order-station-layout {
  min-height: 100vh;
  background: #f5f7fa;
}

.order-station-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  height: 64px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.back-button {
  color: #6b7280 !important;
  border: none !important;
  padding: 8px !important;
  border-radius: 8px !important;
  transition: all 0.2s ease;
  background: #f9fafb !important;
}

.back-button:hover {
  color: #374151 !important;
  background: #f3f4f6 !important;
}

.page-title {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: #111827;
  letter-spacing: -0.025em;
}

.main-container {
  padding: 20px 24px;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

.search-container {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.search-input {
  max-width: 400px;
  width: 100%;
}

.search-input .ant-input {
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  font-size: 16px;
  padding: 10px 16px;
  height: auto;
  transition: all 0.2s ease;
}

.search-input .ant-input:focus,
.search-input .ant-input-focused {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-input .ant-input-search-button {
  border-radius: 0 8px 8px 0 !important;
  /* background: #3b82f6 !important; */
  border-color: #3b82f6 !important;
}

.area-tabs {
  background: #ffffff;
  border-radius: 8px;
  padding: 4px;
  /* border: 1px solid #e5e7eb; */
  margin-bottom: 16px;
}

.area-tabs .ant-tabs-nav {
  margin-bottom: 0 !important;
}

.area-tabs .ant-tabs-tab {
  padding: 10px 20px !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  color: #6b7280 !important;
  border: none !important;
  background: transparent !important;
  transition: all 0.2s ease !important;
  border-radius: 6px !important;
  margin: 2px !important;
}

.area-tabs .ant-tabs-tab:hover {
  color: #374151 !important;
  background: #f9fafb !important;
}

.area-tabs .ant-tabs-tab-active {
  color: #3b82f6 !important;
  background: #eff6ff !important;
}

.area-tabs .ant-tabs-ink-bar {
  display: none !important;
}

.tables-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  /* padding: 16px; */
  /* background-color: #fff; */
}

.table-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  min-height: 140px;
  position: relative;
}

.table-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #10b981;
  transition: all 0.2s ease;
  border-radius: 8px 8px 0 0;
}

.table-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #d1d5db;
}

.table-card-occupied::before {
  background: #f59e0b;
}

.table-card-occupied {
  background: #fffbeb;
  border-color: #fed7aa;
}

.table-card-occupied:hover {
  border-color: #fdba74;
}

.table-card-free:hover {
  border-color: #a7f3d0;
}

.table-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.table-name {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  letter-spacing: -0.025em;
}

.table-status-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

.status-free {
  background: #d1fae5;
  color: #065f46;
}

.status-occupied {
  background: #fef3c7;
  color: #92400e;
}

.table-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.table-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-info-icon {
  color: #6b7280;
  font-size: 14px;
  width: 16px;
  display: flex;
  justify-content: center;
}

.table-info-text {
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
}

.table-action {
  margin-top: auto;
  padding-top: 12px;
}

.table-action .ant-btn {
  height: 36px !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
}

.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  grid-column: 1 / -1;
}

.empty-container {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.empty-container .ant-empty-description {
  color: #6b7280;
  font-size: 16px;
  font-weight: 500;
}

/* Pad端优化 - 大屏幕 */
@media (min-width: 1400px) {
  .tables-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
  }
  
  .table-card {
    min-height: 160px;
    padding: 20px;
  }
  
  .table-name {
    font-size: 20px;
  }
  
  .table-info-text {
    font-size: 16px;
  }
}

/* 标准Pad端 */
@media (min-width: 1024px) and (max-width: 1399px) {
  .tables-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
  
  .table-card {
    min-height: 150px;
    padding: 18px;
  }
  
  .table-name {
    font-size: 18px;
  }
}

/* 中等屏幕适配 */
@media (min-width: 768px) and (max-width: 1023px) {
  .order-station-header {
    padding: 16px 20px;
  }
  
  .main-container {
    padding: 16px 20px;
  }
  
  .tables-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  
  .table-card {
    padding: 14px;
    min-height: 130px;
  }
  
  .page-title {
    font-size: 22px;
  }
}

/* 移动端适配 */
@media (max-width: 767px) {
  .order-station-header {
    padding: 12px 16px;
  }
  
  .main-container {
    padding: 16px 12px;
  }
  
  .tables-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .table-card {
    padding: 12px;
    min-height: 120px;
  }
  
  .header-left {
    gap: 12px;
  }
  
  .page-title {
    font-size: 20px;
  }
  
  .search-input .ant-input {
    font-size: 16px;
    padding: 8px 12px;
  }
  
  .area-tabs .ant-tabs-tab {
    padding: 8px 16px !important;
    font-size: 14px !important;
  }
  
  .table-name {
    font-size: 16px;
  }
  
  .table-info-text {
    font-size: 12px;
  }
} 